<script setup>
import { ArrowDown } from '@element-plus/icons-vue'
</script>

<template>
  <div class="app-main">
    <div class="flex flex-wrap items-center">
      <el-dropdown>
        <el-button type="primary">
          Dropdown List<el-icon class="el-icon--right">
            <arrow-down />
          </el-icon>
        </el-button>
        <template #dropdown>
          <el-dropdown-menu>
            <el-dropdown-item>
              <router-link to="day1">day1</router-link>
            </el-dropdown-item>
            <el-dropdown-item>
              <router-link to="day2">day2</router-link>
            </el-dropdown-item>
          </el-dropdown-menu>
        </template>
      </el-dropdown>
    </div>
    <router-view></router-view>
  </div>
</template>

<style lang="scss" scoped>
.app-main {
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  padding: 15px;

  .el-dropdown-link {
    cursor: pointer;
    color: var(--el-color-primary);
    display: flex;
    align-items: center;
  }
}
</style>
